from django.apps import AppConfig


class GoodsAppConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'goods_app'

    def ready(self):
        # 注册Swagger文档扩展
        try:
            import goods_app.openapi  # noqa: F401
        except ImportError:
            pass